<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace=" commons/common1 :: head(~{::title})">
    <title>博客</title>
</head>
<body>
    <!--导航开始--------------------------------------------->
    <nav th:replace="commons/common1 :: menu(1)"></nav>
    <!--导航结束---------------------------------------------->


    <!--中间内容开始------------------------------------------>
    <div class="m-container">
        <div class="ui container">
            <div class="ui stackable grid">

                <!--中间内容左边开始--------->
                <div class="eleven wide column">

                    <br><br>
                    <!--中间内容上面的导航开始 ---->
<!--                    <div class="ui top attached segment">-->
<!--                        <div class="ui middle aligned two column grid">-->
<!--                            <div class="column">-->
<!--                                <h3 class="ui teal header">博客</h3>-->
<!--                            </div>-->
<!--                            <div class="right aligned column">-->
<!--                                共 <h2 class="ui orange header m-inline-block m-text-thin" th:text="${count}">  </h2> 篇-->
<!--                            </div>-->
<!--                        </div>-->
<!--                    </div>-->
                    <!--中间内容上面的导航结束 ---->


                    <!-- 中间内容中间的具体的博客信息开始 -->
                    <div th:each="blog:${blog}">
                    <br>
                    <br>
                    <div class="ui attached teal segment" >
                        <div class="ui padded vertical segment m-padded-big">
                            <div class="ui mobile reversed stackable grid">
                                <div class="eleven wide column">

                                    <h3 class="ui header" th:text="${blog.title}">JVM内存模型</h3>
                                    <p class="m-text wc" th:text="${blog.context}">&nbsp;&nbsp;&nbsp;最近学习了一下JVM的内存模型，本来想自己写一篇学习心得，总是觉得自己表达不清，然后就从学习资料里复制一段，写到最后发现，基本都是复制的写到最后发现，基本都是复制的</p>

                                    <div class="ui stackable grid">
                                        <div class="eleven wide column">
                                            <div class="ui mini horizontal link list">
                                                <div class="item">
                                                    <i class="calendar icon" ></i><i th:text="${#dates.format(blog.updateTime,'yyyy-MM-dd')}"></i>
                                                </div>
                                                <div class="item">
                                                    <i class="eye icon"></i><i th:text="${blog.views}"></i>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="right aligned five wide column">
                                            <a href="#" target="_blank" th:text="${blog.type.name}" class="ui teal basic m-padded-all-mini m-text-thin label">学习笔记</a>
                                        </div>
                                    </div>
                                </div>
                                <div class="five wide column">
                                    <a href="#" target="_blank">
                                        <img th:src="@{${blog.firstPicture}}" alt="" class="ui rounded m-image-size-square image">
                                    </a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- 中间内容中间的具体的博客信息结束 -->
                </div>
                </div>
                <!--中间内容左边结束--------->
            </div>
        </div>
    </div>
    <!--中间内容结束------------------------------------------>

    <br>
    <br>
    <!--底部内容开始-->
    <footer th:replace="commons/common1 :: footer"></footer>
    <!--底部内容结束------------------------------------------>


<div th:replace="commons/common1 :: script"></div>
<script>
    $('.m-menu.m-toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide');
    });
</script>
</body>
</html>